/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ages.sound

case class SoundBuffer() {

  var gain = 1.0f
  var pitch = 1.0f
  var loop = false
  var bufferNumber:Array[Int] =_

  def this(gain:Float){
    this()
    this.gain = gain
  }

  def this(gain:Float,pitch:Float){
    this()
    this.gain = gain
    this.pitch = pitch
  }
  
  def this(gain:Float,pitch:Float,loop:Boolean){
    this()
    this.gain = gain
    this.pitch = pitch
    this.loop = loop
  }



  def play(){
    ALLoader.playSound(bufferNumber,gain,pitch,loop)
  }


  


}
